import React ,{Component} from "react";
import  "./Person.scss";
import PropTypes from "prop-types"

export default class Person extends Component{
    static propTypes={
        name:PropTypes.string.isRequired,
        age:PropTypes.number.isRequired,
        school:PropTypes.string
    }
    static defaultProps={
        name:"小明",
        age:0,
        school:"zjipc"
    }

    constructor() {
        super();
    }
    render() {
        const {name ,age,school}=this.props;
        return(
            <div>
                <ul>
                    <li>{name}</li>
                    <li>{age}</li>
                    <li>{school}</li>
                </ul>
            </div>
        )
    }


}
